import { Suspense } from 'react'

export const Lazy = (Component: any) => {
  return (
    <Suspense
      fallback={
        <p>
          <i>Loading...</i>
        </p>
      }
    >
      <Component></Component>
    </Suspense>
  )
}
